package com.pn.mapper;

import com.pn.model.RoleAuth;

import java.util.List;

public interface RoleAuthMapper {
    int deleteByPrimaryKey(Integer roleAuthId);

    int insert(RoleAuth record);

    int insertSelective(RoleAuth record);

    RoleAuth selectByPrimaryKey(Integer roleAuthId);

    int updateByPrimaryKeySelective(RoleAuth record);

    int updateByPrimaryKey(RoleAuth record);
    //根据角色id删除角色权限关系
    void removeRoleAuthByRid(Integer roleId);
    //根据角色id查询角色已经分配的所有菜单权限
    List<Integer> findAuthIdsByRid(Integer roleId);
    //给角色添加权限
    void insertRoleAuth(RoleAuth roleAuth);
}